package com.zhentao.controller;

import org.example.dish_pojo.OrderItem;
import com.zhentao.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("orderitem")
public class OrderItemController {
    @Autowired
    OrderItemService orderItemService;
    @RequestMapping("findallorderitem")
    public List<OrderItem> findall(){
        List<OrderItem> orderItemList=orderItemService.list();



        return orderItemList;
    }
}
